﻿ 
using Mapster;
using Yz.Model.Entities;
using Yz.Model.Views;

namespace Yz.DataAccess.ModelMapper
{
    /// <summary>
    /// dbModel和viewModel的映射
    /// </summary>
    public class SourceProfileVm : IRegister
    { 

        public void Register(TypeAdapterConfig config)
        {
            config.NewConfig<User, VmUserBase>();
            config.NewConfig<User, VmUser>();
            config.NewConfig<Notice, VmNotice>();
            config.NewConfig<Company, VmCompany>();
            config.NewConfig<SupplementSetting, VmSupplementSetting>();
            config.NewConfig<Student, VmStudent>();
        }
    }
}
